<?php

// REQUIRE:
if(version_compare(PHP_VERSION, '5.3.0', '>=')) { require_once __DIR__.'/../include.inc'; } 
else { require_once dirname(__FILE__).'/../include.inc'; }


class Route
{
	// Base:
	const INDEX = '/';
	const LOGIN = '/login';
	const LOGOUT = '/logout';
	const SEARCH = '/search';
	const SEARCH_SUB = '/search/{sub}';
	const SITEMAP = '/sitemap';
	const FAQ = '/faq';
	const ABOUT = '/about';
	
	// Account:
	const ACCOUNT = '/account';
	const ACCOUNT_CREATE = '/create';
	const ACCOUNT_PANEL = '/my_account';
	const ACCOUNT_PANEL_ACTIONS = '/my_account/{sub}';
	const ACCOUNT_VIEW = '/account/{sub}';
	const ACCOUNT_LIST = '/accounts';
	
	// Admin:
	const ADMIN_PANEL = '/admin';
	const ADMIN_PANEL_ACTIONS = '/admin/{sub}';
	
	// Posts:
	const POST_LIST = '/posts';
	const POST_ACTIONS = '/post/{sub}';
	const POST_VIEW = '/view/{sub}';
	const POST_WRITE = '/write';
	const POST_EDIT = '/edit';
	
	public $route;
	public $scope;
	public $title;
	public $template;
	
	public function __construct($_route, $_scope, $_title, $_template)
	{
		$this->route = $_route;
		$this->scope = $_scope;
		$this->title = $_title;
		$this->template = $_template;
		return $this;
	}
}
?>